<?php
class CabbieError extends Exception {
    public function __construct($message, $heading, $code = "500") {
        parent::__construct($message, $code);
        $this->error_heading = $heading;
        $this->error_message = $message;
        $this->error_code = $code;
    }
}

/**
 *  Active Record's Exception handling class
 *
 *  @package PHPonTrax
 */
class ActiveRecordError extends CabbieError {}

/**
 * Action Controller's Exception handling class
 *
 *  @package PHPonTrax
 */
class ActionControllerError extends CabbieError {}

?>
